package io.gitee.zhangbinhub.admin.common.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "acp.cloud.zookeeper")
public class ZkClientConfiguration {
    public String getConnect() {
        return connect;
    }

    public void setConnect(String connect) {
        this.connect = connect;
    }

    public Boolean getAclEnable() {
        return aclEnable;
    }

    public void setAclEnable(Boolean aclEnable) {
        this.aclEnable = aclEnable;
    }

    public String getAclSchema() {
        return aclSchema;
    }

    public void setAclSchema(String aclSchema) {
        this.aclSchema = aclSchema;
    }

    public String getAclUsername() {
        return aclUsername;
    }

    public void setAclUsername(String aclUsername) {
        this.aclUsername = aclUsername;
    }

    public String getAclPassword() {
        return aclPassword;
    }

    public void setAclPassword(String aclPassword) {
        this.aclPassword = aclPassword;
    }

    public Integer getSessionTimeOut() {
        return sessionTimeOut;
    }

    public void setSessionTimeOut(Integer sessionTimeOut) {
        this.sessionTimeOut = sessionTimeOut;
    }

    public Integer getConnectionTimeOut() {
        return connectionTimeOut;
    }

    public void setConnectionTimeOut(Integer connectionTimeOut) {
        this.connectionTimeOut = connectionTimeOut;
    }

    public Integer getRetryIntervalMs() {
        return retryIntervalMs;
    }

    public void setRetryIntervalMs(Integer retryIntervalMs) {
        this.retryIntervalMs = retryIntervalMs;
    }

    private String connect = "";
    private Boolean aclEnable = false;
    private String aclSchema = "digest";
    private String aclUsername = "";
    private String aclPassword = "";
    private Integer sessionTimeOut = 60 * 1000;
    private Integer connectionTimeOut = 15 * 1000;
    private Integer retryIntervalMs = 5000;
}
